﻿@using MvcCms.Data.Entities
@using MvcCms.Service.Helpers
@{
    var tickerZoneHTML = string.Empty;
    var zoneHtmls = (IEnumerable<DTOZoneHTML>)ViewBag.ZoneHTMLs;
    if (zoneHtmls!=null) {
        var tickerZone = zoneHtmls.Where(z => z.ZoneName.ToLower() == "tickerzone").FirstOrDefault();
        if (tickerZone != null) { tickerZoneHTML = tickerZone.HTML; }
    }
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>

    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="/RazorThemes/default/wlwmanifest.xml" />
    <meta name="keywords" content="asp cms, mvc, cms, mvc cms, content management system, .net, c#, open source cms" />

    <link rel="shortcut icon" href="/RazorThemes/default/images/favicon.ico" />
    <link href="@Url.Content("/RazorThemes/default/css/Site.css")" rel="stylesheet" type="text/css" />
    <link href="/RazorThemes/default/css/superfish.css" rel="stylesheet" type="text/css" />
    <link href="/RazorThemes/default/css/superfish-navbar.css" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("/RazorThemes/default/Scripts/MvcCms.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/cookies.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/json2005.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/hoverIntent.js")" type="text/javascript"></script>
    <script src="@Url.Content("/Scripts/superfish.js")" type="text/javascript"></script>
    @RenderSection("HtmlHead", false)
</head>
<body>
    <div class="tickerZone" id="tickerZone">@Html.Raw(tickerZoneHTML)</div>
    <div class="header-container">
        <div class="logo">
            <a href="/">
                <img alt="logo" src="/RazorThemes/default/images/logosm.gif" /></a></div>
        <div class="nav-main">
            <div>
                <div>
                    <div class="left">
                    </div>
                    <div class="search">
                        <input type="text" onkeypress="checkSearch(event)" onfocus="ClearSearchBox()" value="Search Text"
                            id="searchbox" />
                        <input class="gobutton" onclick="SetSearch()" type="button" id="btnSearch" value="Go" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div>
                    <div class="nav-left">
                    </div>
                    <div class="nav-right">
                        <ul class="sf-menu sf-navbar">
                            @Html.Partial("ControlsNav/TopNavControl", Html.GetTopNav())
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="content-container">
        <div  class="content-container-inner">
            <div >
                <div class="content-main">
                    @RenderBody()
                </div>
                <div class="content-right">
                    <div class="thecontent_sidebar">
                        <div class="spacer_top">
                        </div>
                        <div>
                            <div class="side-bucket">
                                <div class="side-bucket-top">
                                </div>
                                @{
                                    //Subpages for the content category
                                    @Html.Partial("ControlsSidebar/CatSidebar")
                                    //login / logout
                                    @Html.Partial("ControlsSidebar/UserSidebar")
                                    if (Roles.IsUserInRole("PortalAdmin"))
                                    {
                                        @Html.Partial("ControlsSidebar/PortalAdminSidebar")
                                    }
                                    if (Roles.IsUserInRole("Admin"))
                                    {
                                        @Html.Partial("ControlsSidebar/AdminSidebar")
                                    }
                                    if (Roles.IsUserInRole("Editor"))
                                    {
                                        @Html.Partial("ControlsSidebar/EditorSidebar")
                                    }
                                    if (Roles.IsUserInRole("Contributor"))
                                    {
                                        @Html.Partial("ControlsSidebar/ContributorSidebar")
                                    }
                                }
                                <div class="side-bucket-bottom">
                                </div>
                            </div>
                        </div>
                        @RenderSection("SideBar", false)
                        <div id="modules-forum" class="modules-sidebar">
                        </div>
                        <div id="modules-sidebar" class="modules-sidebar">
                        </div>
                        <div id="modules-rss" class="modules-sidebar">
                        </div>
                        <div id="twitterFeed"></div>
                        <div class="spacer">
                        </div>
                        <div id="feedBack"></div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>

    </div>  &nbsp;
    <div class="nav-footer-container">
        <div class="nav-footer">
            <p class="copyright">
                &copy;
                @Html.GetCurrentPortalName()</p>
           @Html.Partial("ControlsNav/Nav")
        </div>
    </div>

    @RenderSection("ScriptContent", false)
    <script type="text/javascript">
        $(document).ready(function () {
            $("ul.sf-menu").superfish({
                pathClass: 'active'
            });
        });
    </script>
  <script type='text/javascript' language='Javascript' src='http://s1.lqcdn.com/m.min.js?dt=2.3.110104.1'></script>
  <script type='text/javascript' language='Javascript'>    if ($.LqmAds) $.LqmAds();</script>
</body>
</html>
